<template>
	<view class="layout">
		<view class="navbar">
			<view class="statusBar" :style="{height:statusBarHeight}"></view>
			<view class="titleBar">
				<view class="title">{{ title }}</view>
				<view class="search">
					<uni-icons type="search" color="#888" size="18"></uni-icons>
					<text>搜索</text>
				</view>
			</view>
		</view>
		
		<view class="fill"></view>
	</view>
</template>

<script setup>
import {ref} from 'vue'
let SYSTEM_INFO = uni.getSystemInfoSync()
let statusBarHeight = ref(SYSTEM_INFO.statusBarHeight)
console.log(statusBarHeight.value)

defineProps({
	title: {
		type: String,
		default: '壁纸'
	}
})

</script>

<style lang="scss" scoped>
.layout {
	.navbar {
		
		.statusBar {
			
		}
		.titleBar {
			display: flex;
			align-items: center;
			padding: 0 30rpx;
			height: 100rpx;
			.title {
				font-size: 22px;
				font-weight: 800;
				color: #000;
			}
			.search {
				width: 220rpx;
				height: 56rpx;
				background-color: rgba(255, 255, 255, 0.4);
				border-radius: 60rpx;
				font-size: 28rpx;
				margin-left: 30rpx;
				border:1px solid #fff;
				color: #999;
				display: flex;
				align-items: center;
				text {
					padding-left: 10rpx;
				}
			}
		}
	}
	.fill {
		
	}
}
</style>